<!DOCTYPE html>
<html>
<include file="Public:header" />

<body>

<script type="text/javascript" charset="utf-8">



    function trClick(today, channel, tag) {
        if (tag == 1) {
            showModalDialog("{:U('ivr/info_',array('timeStamp'=>time()))}" + "/today/" + today + "/channel/" + channel, "上行详情", "dialogWidth:800px;dialogHeight:600px; dialogLeft:200px;dialogTop:150px;center:yes;help:yes;resizable:yes;status:yes;toolbar=no");
        } else if (tag == 2) {
            showModalDialog("{:U('ivr/syncInfo_',array('timeStamp'=>time()))}" + "/today/" + today + "/channel/" + channel, "上行详情", "dialogWidth:800px;dialogHeight:600px; dialogLeft:200px;dialogTop:150px;center:yes;help:yes;resizable:yes;status:yes;toolbar=no");
        } else if (tag == 3) {
            showModalDialog("{:U('ivr/upErrorinfo_',array('timeStamp'=>time()))}" + "/today/" + today + "/channel/" + channel, "上行详情", "dialogWidth:800px;dialogHeight:600px; dialogLeft:200px;dialogTop:150px;center:yes;help:yes;resizable:yes;status:yes;toolbar=no");

        } else if (tag == 4) {
            showModalDialog("{:U('ivr/upinfo_',array('timeStamp'=>time()))}" + "/today/" + today + "/channel/" + channel, "上行详情", "dialogWidth:800px;dialogHeight:600px; dialogLeft:200px;dialogTop:150px;center:yes;help:yes;resizable:yes;status:yes;toolbar=no");

        }

    }
</script>
<script type="text/javascript">
    $(function () {

        $(".datepicker-start").datepicker({
            dateFormat: 'yy-mm-dd',
            showButtonPanel: true,

        });

    })


</script>


日期：
<form action="{:U('ivr/list_')}">
    开始:<input class="datepicker-start" type="text" name="pdate_start" value="{$pdate_start}"/>
    结束:<input class="datepicker-start" type="text" name="pdate_end" value="{$pdate_end}"/><br/>

    <input type="submit" value="统计" class="btn btn-default">

</form>
总计费数:{$data1['count']}
<table class="table table-bordered table-hover definewidth m10">
    <thead>
    <tr>

        <th>渠道号</th>

        <th>上行数</th>
        <th>计费请求数</th>

        <th>计费成功数</th>

        <th>同步成功数</th>
        <th>转化率</th>


    </tr>
    </thead>
    <tbody>
    <foreach name="data" item="vo">
        <tr>

            <td>{$vo.channel}</td>

            <td >{$vo.up_success_count}</td>
            <td >{$vo.code_success_count}</td>


            <td > {$vo.count}</td>
            <td >{$vo.sync_count}</td>
            <td >{$vo['count']/$vo['code_success_count']*100}%</td>


        </tr>
    </foreach>

    </tbody>
</table>

</body>

</html>
